<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="/pages/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>广东工业大学招生办-在线咨询</title>
	<link rel="stylesheet" type="text/css" href="${ctx}/css/reset.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/css/home.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/css/page.css" />
	<script src="${ctx}/js/jquery-page.js" type="text/javascript"></script>
	<script src="${ctx }/js/table.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx }/js/showTime.js"></script>
	<script type="text/javascript" src="${ctx }/js/jquery.js"></script>
    <script type="text/javascript" src="${ctx }/js/jquery.form.js"></script>
    <style>
    .title a{
   		z-index:1000;
   		width:50px;
   		left:30px;   		
    }
    .title .titleBg{
    	background:#FF5809;width:50px;height:25px;z-index:1
    }
    </style>
</head>
<body><%--
   <s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">
               
             <script language="JavaScript">      
                 alert("<s:property escape="false"/>");     
             </script>   
             </s:iterator>
             </s:if>
	--%><div class="wrapper">
		<jsp:include page="../../../header.jsp" flush="true" /> 

		<!--main-content-->
		<form action="${ctx}/base/message!list.action" method="post" id="mainForm" name="form">
		<input type="hidden" name="status" value="${status}"/>
		<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
		<div id="main-content-child-page" class="w960 auto">
			<!--Breadcrumb Trail-->
			<div class="breadcurmb-trail mt5 mb10">
				您的位置：<a href="${ctx}/index.html">网站首页</a>-在线咨询
				
			</div>
			<div class="content clearfix">
			<div class="f16 pt10 pb10 ml20 mr20 mb20 tc tip"><a class="red">温馨提示：</a>请先在精品区和最新回复区查看是否有您想提问的问题，如果没有请点击“<a href="${ctx}/base/message!checkOnlineConsult.action" class="red">我要咨询</a>”，谢谢</div>
				<div class="advisory-content">
					<div class="red f16 rel">
						<span id="advisory-title">在线咨询</span>
						<div class="red-line-pic abs"></div>						
						<div class="abs black title" style="left:200px; top:0;"><img src="${ctx }/images/digest_3.gif" class="l"/><s:if test="status==1"><div class="titleBg l abs" style="left:22px;"></div></s:if><a href="${ctx}/base/message.action?status=1" class="abs db">精华</a></div>
						<div class="abs black title" style="left:350px; top:0;"><img src="${ctx }/images/new_bf5cce79.gif" class="l" /><s:if test="status!=1"><div class="titleBg l abs" style="left:22px;"></div></s:if><a href="${ctx}/base/message.action" class="abs db">最新</a></div>
						<%--<div class="abs black title" style="left:300px; top:0;width:300px;">您正在浏览<a style="color:#FF5511;"><s:if test="status==1">精华</s:if><s:else>最新</s:else></a>留言区</div>
					--%></div>
					<ul>			
					<s:iterator value="page.result">
						<li class="clearfix">
							<div class="l tc w100">
								<div class="advisory-header-image auto mb5"></div>
								<div class="advisory-name">姓名：${name}</div>
								<div class="advisory-address">来自：${comeFrom }</div>
								时间:${editTime}
								</div>
							<div class="advisory-detail r">
								<div class="advisory-text f14">${content }</div>
								<div class="answer-tetail mt20 rel">
									<div class="pic abs"></div>
									<div class="l"><div class="answer-header-image"></div>站长</div>								
									<div class="answer-text ml40">${answer}</div>
								</div>
							</div>
						</li>
						</s:iterator>
					</ul>
					<div class="w650 tc auto"><a href="${ctx}/base/message!checkOnlineConsult.action"  class="red f14">我要咨询</a>&nbsp;|&nbsp;<a href="${ctx}/base/message!list.action" class="col6 f14">刷新</a></div>
					<div class="next-page  tc f14 mt40 pb20">
					当前第${page.pageNo}页
					共${page.totalPages}页
					<a href="javascript:jumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:jumpPage(${page.totalPages})">尾页</a>
					
					转到 <input type="text" name="textfield" id="textfield"  style="width:20px; height:18px; font-size:12px; border:solid 1px #7aaebd;"/>页
					<a href="javascript:jumpPage(document.form.textfield.value)">确定</a>
				</div>					
				</div>
			</div>
		</div>
		</form>
				<jsp:include page="../../../footer.jsp" flush="true" /> 
	</div>	
</body>
</html>